import React from 'react';

const PrivateRoute = (props) => {
    let {component: Comp, ...rest} = props;

    // 在v6中，PrivateRoute只需要返回组件即可
    // 路由匹配和渲染由Routes组件处理
    return <Comp {...rest} />;
}

export default PrivateRoute;
